Skip to content

refactor(ast): introduce #[estree(ts_alias)] attr and use it on Elision#8939

Merged
graphite-app[bot] merged 1 commit intomainfrom
02-06-refactor_ast_introduce_estree_ts_alias_attr_and_use_it_on_elision_
Feb 7, 2025
Merged

refactor(ast): introduce #[estree(ts_alias)] attr and use it on Elision#8939
graphite-app[bot] merged 1 commit intomainfrom
02-06-refactor_ast_introduce_estree_ts_alias_attr_and_use_it_on_elision_

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Feb 6, 2025

Introduce #[estree(ts_alias = "...")] attribute to tell Typescript generator to substitute another type in the place of this one.

Use it on Elision, to make its TS type null. This allows removing other customizing attributes from other types - the codegen does more of the work.

Copy link
Member Author

overlookmotel commented Feb 6, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@overlookmotel overlookmotel marked this pull request as ready for review February 6, 2025 22:39
@codspeed-hq
Copy link

codspeed-hq bot commented Feb 6, 2025

CodSpeed Performance Report

Merging #8939 will not alter performance

Comparing 02-06-refactor_ast_introduce_estree_ts_alias_attr_and_use_it_on_elision_ (640db88) with main (1b89e75)

Summary

✅ 33 untouched benchmarks

@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Feb 7, 2025
@graphite-app
Copy link
Contributor

graphite-app bot commented Feb 7, 2025

Merge activity

…ision` (#8939)

Introduce `#[estree(ts_alias = "...")]` attribute to tell Typescript generator to substitute another type in the place of this one.

Use it on `Elision`, to make its TS type `null`. This allows removing other customizing attributes from other types - the codegen does more of the work.
@graphite-app graphite-app bot force-pushed the 02-06-refactor_ast_shorten_ts_type_definitions_for_enums branch from 8b48391 to 66f0afb Compare February 7, 2025 02:49
@graphite-app graphite-app bot force-pushed the 02-06-refactor_ast_introduce_estree_ts_alias_attr_and_use_it_on_elision_ branch from b62cec2 to 640db88 Compare February 7, 2025 02:49
Base automatically changed from 02-06-refactor_ast_shorten_ts_type_definitions_for_enums to main February 7, 2025 03:10
@graphite-app graphite-app bot merged commit 640db88 into main Feb 7, 2025
28 checks passed
@graphite-app graphite-app bot deleted the 02-06-refactor_ast_introduce_estree_ts_alias_attr_and_use_it_on_elision_ branch February 7, 2025 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0-merge Merge with Graphite Merge Queue A-ast Area - AST A-ast-tools Area - AST tools C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant